package com.sunday.redis.lua.toolkit;

import org.apache.commons.lang3.ObjectUtils;

/**
 * 用于判定RedisLuaTemplate方法执行结果的辅助类
 *
 * @author sunday
 * @since 2024/1/25
 */
public class ResultHelper {

    /**
     * 检查是否超出了上限或下限
     *
     * @param result
     * @return {@link boolean}
     */
    public static boolean retBool(Long result) {
        return ObjectUtils.isNotEmpty(result);
    }


}
